package com.jojo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jojo.domain.Order;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Date;

public interface OrderService extends IService<Order>{


    /**
     * 多条件分表查询订单
     * @param page
     * @param orderNumber
     * @param status
     * @param startTime
     * @param endTime
     * @return
     */
    Page<Order> queryOrderPage(Page<Order> page, String orderNumber, Integer status, Date startTime, Date endTime);

    /**
     * 根据订单编号查询订单详情
     * @param orderNumber
     * @return
     */
    Order queryOrderDetailByOrderNumber(Long orderNumber);
}
